#pragma once

// Excute the command and get the stdout result

class CommandExcutor
{
public:
	CommandExcutor(void);
	virtual ~CommandExcutor(void);

	BOOL Excute(LPCTSTR lpCommand, LPCTSTR lpCurentDirectory = NULL);
	BOOL GetResult(LPSTR lpBuffer, DWORD dwSize);

private:
	HANDLE m_hStdRd;
};
